package com.jie.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author jie
 * @since 2024-03-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class ShoppingCart implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 购物车id
     */
    @TableId(value = "shopping_id", type = IdType.AUTO)
    private Integer shoppingId;

    /**
     * 商品id
     */
    private String goodsId;

    /**
     * 购买商品数量
     */
    private Integer number;

    /**
     * 总价(动态属性增加的价格和单价之和)
     */
    private BigDecimal totalPrice;

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 选择了的动态属性下标
     */
    private String manyAttrsIndex;
    /**
     * 是否选中该商品
     */
    private String checked;


}
